package com.xydtech.workflow.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xydtech.workflow.mapper.WflFlowDocListMapper;
import com.xydtech.workflow.domain.WflFlowDocList;
import com.xydtech.workflow.service.IWflFlowDocListService;
import com.xydtech.common.core.text.Convert;

/**
 * 流程影像资料库Service业务层处理
 * 
 * @author JHON
 * @date 2022-01-04
 */
@Service
public class WflFlowDocListServiceImpl implements IWflFlowDocListService 
{
    @Autowired
    private WflFlowDocListMapper wflFlowDocListMapper;

    /**
     * 查询流程影像资料库
     * 
     * @param docId 流程影像资料库主键
     * @return 流程影像资料库
     */
    @Override
    public WflFlowDocList selectWflFlowDocListByDocId(Long docId)
    {
        return wflFlowDocListMapper.selectWflFlowDocListByDocId(docId);
    }

    /**
     * 查询流程影像资料库列表
     * 
     * @param wflFlowDocList 流程影像资料库
     * @return 流程影像资料库
     */
    @Override
    public List<WflFlowDocList> selectWflFlowDocListList(WflFlowDocList wflFlowDocList)
    {
        return wflFlowDocListMapper.selectWflFlowDocListList(wflFlowDocList);
    }

    /**
     * 新增流程影像资料库
     * 
     * @param wflFlowDocList 流程影像资料库
     * @return 结果
     */
    @Override
    public int insertWflFlowDocList(WflFlowDocList wflFlowDocList)
    {
        return wflFlowDocListMapper.insertWflFlowDocList(wflFlowDocList);
    }

    /**
     * 修改流程影像资料库
     * 
     * @param wflFlowDocList 流程影像资料库
     * @return 结果
     */
    @Override
    public int updateWflFlowDocList(WflFlowDocList wflFlowDocList)
    {
        return wflFlowDocListMapper.updateWflFlowDocList(wflFlowDocList);
    }

    /**
     * 批量删除流程影像资料库
     * 
     * @param docIds 需要删除的流程影像资料库主键
     * @return 结果
     */
    @Override
    public int deleteWflFlowDocListByDocIds(String docIds)
    {
        return wflFlowDocListMapper.deleteWflFlowDocListByDocIds(Convert.toStrArray(docIds));
    }

    /**
     * 删除流程影像资料库信息
     * 
     * @param docId 流程影像资料库主键
     * @return 结果
     */
    @Override
    public int deleteWflFlowDocListByDocId(Long docId)
    {
        return wflFlowDocListMapper.deleteWflFlowDocListByDocId(docId);
    }
}
